]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix rundialog not closing for internal commands
authorAdel Gadllah <adel.gadllah@gmail.com>
Thu, 1 Oct 2009 21:44:16 +0000 (23:44 +0200)
committerOwen W. Taylor <otaylor@fishsoup.net>
Fri, 2 Oct 2009 18:18:51 +0000 (14:18 -0400)
Signed-off-by: Adel Gadllah <adel.gadllah@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=597076

js/ui/runDialog.js

index 473375bb7d9d4d0ceb52c08a92255e70a064adc3..1d6ae4abfbaab2c60d1d2269ee7be587a31d2b32 100644 (file)
@@ -148,6 +148,7 @@ RunDialog.prototype = {
     },
 
     _run : function(command) {
+        this._commandError = false;
         let f;
         if (this._enableInternalCommands)
             f = this._internalCommands[command];
@@ -157,7 +158,6 @@ RunDialog.prototype = {
             f();
         } else if (command) {
             try {
-                this._commandError = false;
                 let [ok, len, args] = GLib.shell_parse_argv(command);
                 let p = new Shell.Process({'args' : args});
                 p.run();